package com.example.demo.oo.domain.vo;

import lombok.Data;
import org.springframework.util.DigestUtils;

import java.time.LocalDateTime;

@Data
public class Token {

    private String value;

    public void generate(String val) {
        val += LocalDateTime.now().toString();
        value = DigestUtils.md5DigestAsHex(val.getBytes());
    }

}
